package cn.itcast.wanxinp2p;


import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @email 1572178030@qq.com
 * @author:黄海宾
 * @date: ${DATE}  ${TIME}
 */
//,exclude = DataSourceAutoConfiguration.class
@SpringBootApplication(scanBasePackages = {"cn.itcast.wanxinp2p.account"})
@EnableDiscoveryClient
@EnableApolloConfig
@EnableSwagger2
public class AccountApp {
    public static void main(String[] args) {
        SpringApplication.run(AccountApp.class, args);
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }


}